ComponentOne Data Source for Entity Framework
C1.LiveLinq.LiveViews Namespace / View<T> Class / SelectMany Method / SelectMany<TCollection,TResult>(Expression<Func<T,IObservableSource<TCollection>>>,Expression<Func<T,TCollection,TResult>>) Method
The type of the intermediate elements collected by collectionSelector.
The type of the elements of the resulting view.
A transform function to apply to each element of this view.
A transform function to apply to each element of the intermediate collection.

In This Topic
    SelectMany<TCollection,TResult>(Expression<Func<T,IObservableSource<TCollection>>>,Expression<Func<T,TCollection,TResult>>) Method
    In This Topic
    Projects each element of this view to a collection of collections, flattens the resulting collections into one collection, and invokes a result selector function on each element therein.
    Syntax
    'Declaration
     
    
    Public Overloads Function SelectMany
        (Of TCollection,TResult)( _
       ByVal collectionSelector As System.Linq.Expressions.Expression(Of Func(Of T,IObservableSource(Of TCollection))), _
       ByVal resultSelector As System.Linq.Expressions.Expression(Of Func(Of T,TCollection,TResult)) _
    ) As View(Of TResult)
    public View<TResult> SelectMany<TCollection,TResult>( 
       System.Linq.Expressions.Expression<Func<T,IObservableSource<TCollection>>> collectionSelector,
       System.Linq.Expressions.Expression<Func<T,TCollection,TResult>> resultSelector
    )

    Parameters

    collectionSelector
    A transform function to apply to each element of this view.
    resultSelector
    A transform function to apply to each element of the intermediate collection.

    Type Parameters

    TCollection
    The type of the intermediate elements collected by collectionSelector.
    TResult
    The type of the elements of the resulting view.

    Return Value

    A view whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of this view and then mapping each of those collection elements and their corresponding source element to a result element.
    See Also